﻿<controls:MetroWindow x:Class="ProjectGroep3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="Reservatiebeheer" Height="470.134" Width="1023.617" Foreground="Red" Background="White" ResizeMode="CanMinimize" Icon="Resources/Groep3.png">




    <Grid Margin="0,0,0,18">
        <TabControl HorizontalAlignment="Stretch" Height="auto" Margin="10" VerticalAlignment="Stretch" Width="auto">
            <TabItem Header="Reservation Meetingroom" RenderTransformOrigin="0.289,0.536" Foreground="White" Width="357">
                <Grid x:Name ="GridReserveer" Background="White" Margin="10,12,-12,-20">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0*"/>
                        <ColumnDefinition Width="0*"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <DatePicker x:Name="dtpReservation" Margin="9,33,0,0" VerticalAlignment="Top" Height="26" SelectedDateChanged="dtpReservation_SelectedDateChanged" Grid.Column="2" HorizontalAlignment="Left" Width="255"/>
                    <DataGrid x:Name ="dtgReservation"   AutoGenerateColumns="False" ItemsSource="{Binding}" Margin="316,33,0,0" VerticalAlignment="Top" Height="323" Grid.Column="2" Background="{x:Null}" IsReadOnly="True" HorizontalAlignment="Left" Width="282" RenderTransformOrigin="0.5,0.5">
                        <DataGrid.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform AngleY="-0.774"/>
                                <RotateTransform/>
                                <TranslateTransform Y="-2.236"/>
                            </TransformGroup>
                        </DataGrid.RenderTransform>
                        <DataGrid.Columns>
                            <DataGridCheckBoxColumn ElementStyle="{DynamicResource MetroDataGridCheckBox}"
            					EditingElementStyle="{DynamicResource MetroDataGridCheckBox}"
            					Header="Select"
            					Binding="{Binding IsSelected, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}"
                                        />
                            <DataGridTextColumn Header="Rooms" Width="*" Binding="{Binding Room}" />
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid x:Name="dtgDeleteReservations" AutoGenerateColumns="False" ItemsSource="{Binding}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="642,33,0,0" Height="319" Width="316" Grid.ColumnSpan="3" IsReadOnly="True" Foreground="#CC119EDA" >
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Datum" Width="*" Binding="{Binding Path=StartDate, StringFormat=d}" />
                            <DataGridTextColumn Header="Location" Width="*" Binding="{Binding Path=Name}" />
                        </DataGrid.Columns>
                    </DataGrid>
                    <Label x:Name="lblAvailable" Content="No rooms available" HorizontalAlignment="Left" Margin="5,271,0,0" VerticalAlignment="Top" Width="158" Background="{x:Null}" Foreground="Red" FontFamily="Arial" RenderTransformOrigin="0.5,1.958" Visibility="Hidden" Height="24" Grid.Column="2" />
                    <Button x:Name="btnDeleteReservation" Height="36" Content="Delete" Grid.ColumnSpan="3" HorizontalAlignment="Left" Margin="10,121,0,0" VerticalAlignment="Top" Width="128" Click="btnDeleteReservation_Click" BorderBrush="#CC119EDA" Background="#CC119EDA" Foreground="White"/>
                    <Button x:Name="btnBook" Grid.ColumnSpan="3" Content="Book" HorizontalAlignment="Left" Margin="10,73,0,0" VerticalAlignment="Top" Width="128" Height="36
                            " Click="btnBook_Click" Background="#CC119EDA" BorderBrush="#CC119EDA" Foreground="White"/>
                </Grid>
            </TabItem>
            <TabItem Header="Client Data" Width="181">
                <Grid Background="White" Margin="10,5,-4,-8">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="486*"/>
                        <ColumnDefinition Width="275*"/>
                        <ColumnDefinition Width="185*"/>
                    </Grid.ColumnDefinitions>
                    <Label x:Name="lblClient" Content="Client" HorizontalAlignment="Left" Margin="34,21,0,0" VerticalAlignment="Top" Width="101" FontSize="16" FontWeight="Bold" Foreground="#CC119EDA"/>
                    <Label x:Name="lblCompany" Content="Company&#xD;&#xA;" HorizontalAlignment="Left" Margin="313,21,0,0" VerticalAlignment="Top" Height="31" Width="88" FontSize="16" FontWeight="Bold" Foreground="#CC119EDA"/>
                    <TextBox x:Name="txtUsername" HorizontalAlignment="Left" Height="23" Margin="117,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="142" RenderTransformOrigin="0.659,0.659" IsReadOnly="True"/>
                    <Label x:Name="lblUsername" Content="Username" HorizontalAlignment="Left" Margin="35,60,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.345,0.386"/>
                    <Label x:Name="lblEmail" Content="Email" HorizontalAlignment="Left" Margin="35,110,0,0" VerticalAlignment="Top" Width="62"/>
                    <Label x:Name="lblCompanyId" Content="Company ID" HorizontalAlignment="Left" Margin="35,160,0,0" VerticalAlignment="Top"/>
                    <Label x:Name="lblCName" Content="Name" HorizontalAlignment="Left" Margin="313,60,0,0" VerticalAlignment="Top" RenderTransformOrigin="-1.524,0.534"/>
                    <Label x:Name="lblCAddress" Content="Address" HorizontalAlignment="Left" Margin="313,95,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.536,-0.478"/>
                    <Label x:Name="lblCZipcode" Content="Zipcode" HorizontalAlignment="Left" Margin="313,131,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.121,-1.114"/>
                    <Label x:Name="lblCEmployees" Content="Employees" HorizontalAlignment="Left" Margin="313,165,0,0" VerticalAlignment="Top" Height="26" Width="115" RenderTransformOrigin="0.498,3.175"/>
                    <TextBox x:Name="txtEmail" HorizontalAlignment="Left" Height="23" Margin="117,110,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="142" IsReadOnly="True"/>
                    <TextBox x:Name="txtCompanyId" HorizontalAlignment="Left" Height="23" Margin="117,160,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="69" IsReadOnly="True"/>
                    <TextBox x:Name="txtCName" HorizontalAlignment="Left" Height="23" Margin="448,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.ColumnSpan="2" IsReadOnly="True"/>
                    <TextBox x:Name="txtCAddress" HorizontalAlignment="Left" Height="23" Margin="448,96,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.ColumnSpan="2" IsReadOnly="True"/>
                    <TextBox x:Name="txtCZipcode" HorizontalAlignment="Left" Height="23" Margin="448,131,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.ColumnSpan="2" IsReadOnly="True"/>
                    <TextBox x:Name="txtCEmployees" HorizontalAlignment="Left" Height="23" Margin="448,165,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.ColumnSpan="2" IsReadOnly="True"/>
                    <Button x:Name="btnCancelContract" Content="Cancel Contract" HorizontalAlignment="Left" Margin="127,268,0,0" VerticalAlignment="Top" Width="123" Height="38" Background="#CC119EDA" BorderBrush="#CC119EDA" Foreground="White" Click="btnCancelContract_Click" Grid.Column="1"/>
                    <Label x:Name="lblContract" Content="Contract" HorizontalAlignment="Left" Margin="117,21,0,0" VerticalAlignment="Top" Height="31" Width="88" FontSize="16" FontWeight="Bold" Foreground="#CC119EDA" Grid.Column="1"/>
                    <Label x:Name="lblDescription" Content="Description" HorizontalAlignment="Left" Margin="119,60,0,0" VerticalAlignment="Top" RenderTransformOrigin="-1.524,0.534" Grid.Column="1"/>
                    <TextBox x:Name="txtDescription" HorizontalAlignment="Left" Height="59" Margin="254,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="216" IsReadOnly="True" Grid.Column="1" Grid.ColumnSpan="2"/>
                    <Label x:Name="lblStartEnd" Content="Start - End" HorizontalAlignment="Left" Margin="119,131,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.121,-1.114" Grid.Column="1"/>
                    <Label x:Name="lblPrice" Content="Price" HorizontalAlignment="Left" Margin="119,165,0,0" VerticalAlignment="Top" Height="26" Width="115" RenderTransformOrigin="0.498,3.175" Grid.Column="1"/>
                    <TextBox x:Name="txtStart" HorizontalAlignment="Left" Height="23" Margin="254,131,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="88" IsReadOnly="True" Grid.Column="1" Grid.ColumnSpan="2"/>
                    <TextBox x:Name="txtPrice" HorizontalAlignment="Left" Height="23" Margin="254,165,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="88" IsReadOnly="True" Grid.Column="1" Grid.ColumnSpan="2"/>
                    <TextBox x:Name="txtEnd" HorizontalAlignment="Left" Height="23" Margin="94,131,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="88" IsReadOnly="True" Grid.Column="2"/>
                    <Label Content="___" Grid.Column="2" HorizontalAlignment="Left" Margin="64,125,0,0" VerticalAlignment="Top"/>
                </Grid>
            </TabItem>
            <Grid Margin="19,23,11,22"/>
        </TabControl>
        <Image HorizontalAlignment="Left" Height="26" Margin="960,21,0,0" VerticalAlignment="Top" Width="33" RenderTransformOrigin="0.57,0.53" Source="Resources/System-Logout-icon.png" MouseLeftButtonUp="image_MouseLeftButtonUp"/>


    </Grid>
</controls:MetroWindow>
